package com.cpecc.liucheng.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cpecc.liucheng.dao.HuanJieDao;
import com.cpecc.liucheng.model.HuanJie;

@Service
public class HuanJieManager {

	@Autowired
	private HuanJieDao huanJieDao;
	
	public HuanJie get(int id){
		return huanJieDao.get(id);
	}

	public String getHuangJieMC(Integer huangJieId) {
		HuanJie huanJie = get(huangJieId);
		return huanJie == null ? null : huanJie.getHuanJieMC();
	}
}
